package com.nuoniu.sibanyun.entity.crm;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 佣金记录
 * </p>
 *
 * @author baiqiang
 * @since 2020-07-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("commission_record")
@ApiModel(value="CommissionRecord对象", description="佣金记录")
public class CommissionRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "用户名称")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value = "订单号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty(value = "公司名称")
    @TableField("company_name")
    private String companyName;

    @ApiModelProperty(value = "支付金额")
    @TableField("pay_amount")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "奖励等级")
    @TableField("reward_level")
    private Integer rewardLevel;

    @ApiModelProperty(value = "佣金奖励比例%")
    @TableField("reward_rate")
    private Integer rewardRate;

    @ApiModelProperty(value = "当月推销等级")
    @TableField("retail_level_name")
    private String retailLevelName;

    @ApiModelProperty(value = "当月推销奖励系数")
    @TableField("retail_rate")
    private Double retailRate;

    @ApiModelProperty(value = "佣金收入")
    @TableField("reward_income")
    private BigDecimal rewardIncome;

    @ApiModelProperty(value = "总收入")
    @TableField("total_income")
    private BigDecimal totalIncome;

    @ApiModelProperty(value = "余额")
    @TableField("balance")
    private BigDecimal balance;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_date")
    private LocalDateTime createDate;


}
